package com.luban.gateway;

import com.luban.common.service.PayService;
import com.sun.tools.javac.util.ServiceLoader;

public class MainApplication {

    public static void main(String[] args) {
        ServiceLoader<PayService> services = ServiceLoader.load(PayService.class);

        for (PayService service : services) {
            service.pay();
        }
    }
}
